﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace iNet.Media.Imaging
{
	/// <summary>
	/// 實作 IImageDecodeTaskFactory 及 IFastMediaFormatRecognizer 介面的基底類別。
	/// </summary>
	public abstract class FastImageDecodeTaskFactory : FastMediaDecodeTaskFactory, IImageDecodeTaskFactory
	{
		#region 建構子
		/// <summary>
		/// 初始化新的 FastImageDecodeTaskFactory 執行個體。
		/// </summary>
		/// <param name="name">工廠名稱，可以為 Null (Visual Basic 為 Nothing)。</param>
		/// <param name="decodingFormat">媒體的解碼格式。</param>
		/// <exception cref="ArgumentNullException">decodingFormat 為 Null (Visual Basic 為 Nothing)。</exception>
		protected FastImageDecodeTaskFactory(string name, IMediaFormat decodingFormat)
			: base(name, decodingFormat)
		{ }
		#endregion
		#region SupportedImageDecodeRequests
		/// <summary>
		/// 取得支援的影像解碼請求組合。
		/// </summary>
		public virtual ImageDecodeRequests SupportedImageDecodeRequests
		{
			get
			{
				return ImageDecodeRequests.DecodeImage | ImageDecodeRequests.DecodePixelSize;
			}
		}
		#endregion
	}
}
